/**
  * @author td
  * @date 2018/3/27
  */
object ImplicitConversionClass {

  class Man(val name: String)
  class Superman(val name: String) {
    def emitLaser = println("emit a laster!")
  }
  implicit def man2Superman(man: Man):Superman = {
    new Superman(man.name)
  }

  def main(args: Array[String]): Unit = {
    val man = new Man("zhangsan");
    man.emitLaser;
  }


}
